package com.lie.prepare.multi_thread.even_checker;

/**
 * Created by lie on 2018/4/9.
 * 生成偶数
 * 将在多线程环境下检测这个生成器
 */
public class EvenGenerator extends IntGenerator {

    private int currentEvenValue = 0;

    public int next() {
        ++currentEvenValue;
        ++currentEvenValue;
        return currentEvenValue;
    }
}
